//
//  DidFinishCell.m
//  Yearly Plan
//
//  Created by admin on 2019/2/28.
//  Copyright © 2019年 admin. All rights reserved.
//

#import "DidFinishCell.h"

@implementation DidFinishCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        
        self.bgView = [UIView new];
        self.bgView.backgroundColor = HEX_COLOR(0xF7CE47);
        self.bgView.layer.cornerRadius = kWidth(8);
        [self.contentView addSubview:self.bgView];
        [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(kHeight(20));
            make.left.equalTo(self.contentView).offset(kWidth(15));
            make.bottom.equalTo(self.contentView).offset(kHeight(-20));
            make.right.equalTo(self.contentView).offset(kWidth(-15));;
        }];
        
        self.infoLab = [UILabel new];
        self.infoLab.text = @"slkafjasdflsdjfkfsdfasdfasdfasfasfasdfaasadfasfasafasflsdf";
        self.infoLab.font = RegularDefaultFont;
        self.infoLab.numberOfLines = 0;
        self.infoLab.textColor = [UIColor darkGrayColor];
        [self.bgView addSubview:self.infoLab];
        [self.infoLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.bgView).offset(kHeight(15));
            make.left.equalTo(self.bgView).offset(kWidth(27));
            make.right.equalTo(self.bgView).offset(kWidth(-27));
        }];
        
        self.titleImg = [UIImageView new];
        [self.titleImg setImage:[UIImage imageNamed:@"icon_wancheng"]];
        
        [self.contentView addSubview:self.titleImg];
        [self.titleImg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(kHeight(10));
            make.left.equalTo(self.contentView).offset(kWidth(7.5));
        }];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
